package com.ruoyi.plan.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * @author MLYNDHG
 * @version 1.0
 * @description 学习内容对象 study_content
 * @date 2023/12/6 13:53
 */
public class StudyContent extends BaseEntity
{
 private static final long serialVersionUID = 1L;

 /** 主键，自增 */
 private Long id;

 /** 学科表的外键 */
 @Excel(name = "学科表的外键")
 private Long subjectId;

 /** 事件标题 */
 @Excel(name = "事件标题")
 private String title;

 /** 事件内容 */
 @Excel(name = "事件内容")
 private String content;

 /** 学习的状态（0未学习、1已学习） */
 @Excel(name = "学习的状态", readConverterExp = "0=未学习、1已学习")
 private String studyStatus;

 /** 今日内容展示状态（0未学习、1已学习） */
 @Excel(name = "今日内容展示状态", readConverterExp = "0=未学习、1已学习")
 private String markStatus;

 /** 任务开启排队（0开启、1关闭） */
 @Excel(name = "任务开启排队", readConverterExp = "0=开启、1关闭")
 private Long isQueue;

 /** 事件创建日期 */
 @JsonFormat(pattern = "yyyy-MM-dd")
 @Excel(name = "事件创建日期", width = 30, dateFormat = "yyyy-MM-dd")
 private Date createDate;

 /** 备注 */
 @Excel(name = "备注")
 private String describes;

 public void setId(Long id)
 {
  this.id = id;
 }

 public Long getId()
 {
  return id;
 }
 public void setSubjectId(Long subjectId)
 {
  this.subjectId = subjectId;
 }

 public Long getSubjectId()
 {
  return subjectId;
 }
 public void setTitle(String title)
 {
  this.title = title;
 }

 public String getTitle()
 {
  return title;
 }
 public void setContent(String content)
 {
  this.content = content;
 }

 public String getContent()
 {
  return content;
 }
 public void setStudyStatus(String studyStatus)
 {
  this.studyStatus = studyStatus;
 }

 public String getStudyStatus()
 {
  return studyStatus;
 }
 public void setMarkStatus(String markStatus)
 {
  this.markStatus = markStatus;
 }

 public String getMarkStatus()
 {
  return markStatus;
 }
 public void setIsQueue(Long isQueue)
 {
  this.isQueue = isQueue;
 }

 public Long getIsQueue()
 {
  return isQueue;
 }
 public void setCreateDate(Date createDate)
 {
  this.createDate = createDate;
 }

 public Date getCreateDate()
 {
  return createDate;
 }
 public void setDescribes(String describes)
 {
  this.describes = describes;
 }

 public String getDescribes()
 {
  return describes;
 }

 @Override
 public String toString() {
  return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
          .append("id", getId())
          .append("subjectId", getSubjectId())
          .append("title", getTitle())
          .append("content", getContent())
          .append("studyStatus", getStudyStatus())
          .append("markStatus", getMarkStatus())
          .append("isQueue", getIsQueue())
          .append("createDate", getCreateDate())
          .append("describes", getDescribes())
          .toString();
 }
}